home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: Greatest Hits 1996 / Amiga Games: Greatest Hits 1996.iso / archive / userbox / publicdomain / engclock_v7.0.lha / EngClock_v7.0 / EngClock7_Source / play.c < prev    next >
C/C++ Source or Header  |  1995-12-05  |  409b  |  25 lines

  1. /* DT Sound player */
  2.  
  3. #include <datatypes/soundclass.h>
  4. #include <datatypes/datatypes.h>
  5. #include <proto/datatypes.h>
  6.  
  7. void main(int argc, char *argv[]);
  8.  
  9. void main(int argc, char *argv[]) {
  10.     struct VoiceHeader ben;
  11.     APTR obj;
  12.  
  13.     obj=NewDTObject(OM_NEW,SDTA_Sample,argv[1],
  14.                 SDTA_VoiceHeader,&ben,
  15.                 TAG_DONE);
  16.     if(!obj) {
  17.         printf("no obj\n");
  18.         return;
  19.     }
  20.  
  21.     DoDTMethod(obj,NULL,NULL,NULL);
  22.                 
  23.                 
  24. }
  25.